package org.smr.ministore.service.impl;

import java.util.List;

import org.blade.dao.base.BaseMapper;
import org.blade.utils.IdGenUtils;
import org.blade.utils.Pager;
import org.blade.service.base.AbstractService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.smr.ministore.dao.GoodsSpecificationGroupOrganMapper;
import org.smr.ministore.entities.GoodsSpecificationGroupOrgan;
import org.smr.ministore.entities.vo.Assign2OrgansVO;
import org.smr.ministore.service.GoodsSpecificationGroupOrganService;

import org.springframework.beans.factory.annotation.Autowired;


import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("goodsSpecificationGroupOrganFacade")
public class GoodsSpecificationGroupOrganFacade extends AbstractService<Long, GoodsSpecificationGroupOrgan> implements GoodsSpecificationGroupOrganService {


    private static Logger logger = LoggerFactory.getLogger(GoodsSpecificationGroupOrganFacade.class);


    @Resource(name = "goodsSpecificationGroupOrganServiceImpl")
    private GoodsSpecificationGroupOrganService service;

    @Autowired
    public GoodsSpecificationGroupOrganFacade(GoodsSpecificationGroupOrganMapper mapper) {
        super(mapper);
    }

    public int save(GoodsSpecificationGroupOrgan entity) {

        return service.save(entity);
    }

    public int updateById(GoodsSpecificationGroupOrgan id) {

        return service.updateById(id);
    }

    public GoodsSpecificationGroupOrgan queryById(Long id) {
        return service.queryById(id);
    }

    public int deleteById(Long id) {
        return service.deleteById(id);
    }

    public Pager<GoodsSpecificationGroupOrgan> paginate(GoodsSpecificationGroupOrgan entity, Long pageSize, Long pageNum) {

        return service.paginate(entity, pageSize, pageNum);
    }

    public int batchSave(List<GoodsSpecificationGroupOrgan> entities) {
        return service.batchSave(entities);
    }


    public int batchModify(List<GoodsSpecificationGroupOrgan> entities) {
        return service.batchModify(entities);
    }


    public int deleteByIdLogical(Long id) {
        return service.deleteByIdLogical(id);
    }


    public List<GoodsSpecificationGroupOrgan> selectBy(Assign2OrgansVO assignee) {
        return service.selectBy(assignee);
    }

    public Long getId() {
        return IdGenUtils.getNextLongId();
    }
}
